#include "OgrePageContent.h"
#include "OgrePageContentFactory.h"
#include "OgrePageContentCollection.h"

namespace Ogre
{
	PageContent::PageContent(PageContentFactory* creator)
		: mCreator(creator), mParent(0)
	{
	}

	PageContent::~PageContent()
	{
	}

	PageManager* PageContent::getManager() const
	{
		return mParent->getManager();
	}

	SceneManager* PageContent::getSceneManager() const
	{
		return mParent->getSceneManager();
	}

	const String& PageContent::getType() const
	{
		return mCreator->getName();
	}

	void PageContent::_notifyAttached(PageContentCollection* parent)
	{
		mParent = parent;
	}
}

